﻿using System;
using System.Reflection;
using System.Runtime.Serialization;

namespace Lightray.Hattrick.ChppLib
{
    internal class DeserializationBinder : SerializationBinder
    {
        public override Type BindToType(string assemblyName, string typeName)
        {
            return Type.GetType(string.Format("{0}, {1}", typeName, assemblyName));
        }
    }
}
